{% extends 'PHPDishWebBundle::layout.html.twig' %}

{% block title %}{{ 'resetting.password'|trans }}{% endblock %}

{% block script %}
    <script type="text/javascript" src="{{ asset('build/js/sign.js') }}"></script>
{% endblock %}


{% block content %}
    <div class="container">
        <div class="row">
            <div class="col-sm-8 col-md-6 col-md-offset-3 col-sm-offset-2">
                {{ form_start(form, { 'action': path('fos_user_resetting_reset', {'token': token}), 'attr': { 'class': 'reg-page' } }) }}
                <div class="reg-header">
                    <h2>{{ 'resetting.password'|trans }}</h2>
                </div>
                {{ form_errors(form) }}

                <div class="form-group">
                    {{ form_label(form.plainPassword.first) }}
                    <div class="input-group">
                        <span class="input-group-addon"><i class="if i-password"></i></span>
                        {{ form_widget(form.plainPassword.first) }}
                    </div>
                    {{ form_errors(form.plainPassword.first) }}
                </div>

                <div class="form-group">
                    {{ form_label(form.plainPassword.second) }}
                    <div class="input-group">
                        <span class="input-group-addon"><i class="if i-password"></i></span>
                        {{ form_widget(form.plainPassword.second) }}
                    </div>
                    {{ form_errors(form.plainPassword.second) }}
                </div>

                <button class="btn btn-md u-btn-primary btn-block" type="submit">{{ 'resetting.submit'|trans }}</button>
                {{ form_end(form) }}
            </div>
        </div>
    </div>
{% endblock %}